// @flow
import React from 'react'
import styles from './Logo.css'
import { Link } from 'react-router-dom'

type Props = {
  title?: string,
  src: string
}

export default ({ title, src }: Props) => {
  return (
    <div style={{
      display: 'inline-block',
      width: '226px',
      textAlign: 'center',
      fontSize: '1.4em'
    }}>
      <Link to='/'>
        <img src={src} className={styles['img']} />
        {title}
      </Link>
    </div>
  )
}
